package cn.kgc.mes.type.mapper;

import java.util.List;
import cn.kgc.mes.type.domain.Workshop;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 车间Mapper接口
 * 
 * @author ydw
 * @date 2025-09-10
 */
public interface WorkshopMapper extends BaseMapper<Workshop>
{
    /**
     * 查询车间
     * 
     * @param workshopId 车间主键
     * @return 车间
     */
    public Workshop selectWorkshopByWorkshopId(Long workshopId);

    /**
     * 查询车间列表
     * 
     * @param workshop 车间
     * @return 车间集合
     */
    public List<Workshop> selectWorkshopList(Workshop workshop);

    /**
     * 新增车间
     * 
     * @param workshop 车间
     * @return 结果
     */
    public int insertWorkshop(Workshop workshop);

    /**
     * 修改车间
     * 
     * @param workshop 车间
     * @return 结果
     */
    public int updateWorkshop(Workshop workshop);

    /**
     * 删除车间
     * 
     * @param workshopId 车间主键
     * @return 结果
     */
    public int deleteWorkshopByWorkshopId(Long workshopId);

    /**
     * 批量删除车间
     * 
     * @param workshopIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkshopByWorkshopIds(Long[] workshopIds);
}
